package cn.com.twoke.game.common.handler;

import cn.com.twoke.game.common.entity.message.Message;

import java.io.IOException;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;

public interface MessageHandler<T extends Message> {

    void handle(Selector selector, SocketChannel channel , T message) throws IOException;

}
